package com.tkmybatis;

import net.javacrumbs.shedlock.spring.annotation.EnableSchedulerLock;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.scheduling.annotation.EnableScheduling;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@SpringBootApplication
@EnableSwagger2
@EnableCaching
@EnableScheduling
@EnableFeignClients
@EnableEurekaClient
@EnableSchedulerLock(defaultLockAtMostFor = "PT50S")
@MapperScan("com.tkmybatis.mapper.*")
public class MybatisDemo2Application {

    public static void main(String[] args) {
        SpringApplication.run(MybatisDemo2Application.class, args);
    }

}
